package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.EnableTransactionManagement;

//日志方便调试
//拦截器或者在这加@ServletComponentScan它的作用就是用来扫描 @WebFilter 注解的类的
@Slf4j
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement
public class ReggieApplication {
    //先配置一个主运行类
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class,args);
        //输出一个日志
        log.info("项目启动成功");

    }

}
